package com.hkts.sinoiov.feign;

import com.hkts.management.common.utils.Result;
import com.hkts.management.common.vo.UserAndRealNameVo;
import com.hkts.sinoiov.model.TO.HktsRegionTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

@FeignClient(value="management-front",configuration = FeignHeadersInterceptor.class)
public interface FrontInterface {

    /*@GetMapping("/front/hktsDriver/getHktsDriverPageList")
    public Result<Object> getHontUserList(Page<HktsDriverTo> page, HktsDriverTo hktsDriver);*/

    /*@GetMapping("/front/hktsDriver/getDriverByUserNameOrMobile")
    public Result<HktsDriverTo> getDriverByUserNameOrMobile(String userName);*/

    @GetMapping("/front/hktsDriver/getDriverInfoByUserId/{userId}")
    public Result<UserAndRealNameVo> getDriverInfoByUserId(@PathVariable(value = "userId") String userId);


    @GetMapping("/front/hktsRegion/getRegionName/{regionCod}")
    public Result<String> getRegionName(@PathVariable(value = "regionCod") String regionCod);

    @GetMapping("/front/hktsRegion/hktsRegionGetByCode/{code}")
    public Result<HktsRegionTo> hktsRegionGetByCode(@PathVariable(value = "code") String code);

    @GetMapping("/front/hktsRegion/getregionRedisByCode")
    public String getregionRedisByCode(@RequestParam("code") int code);

    @GetMapping("/authentication/getIdsByDriverName/{driverName}")
    public Result<List<String>> getIdsByDriverName(@PathVariable String driverName);
    @GetMapping("/front/hktsDriverDetail/addDriverDetail")
    public Result<Object> addDriverDetail(@RequestParam("driverId") String driverId, @RequestParam("applauseRate") BigDecimal applauseRate, @RequestParam("tradeCount") Integer tradeCount);
}
